import request from '../util/request'

const baseUrl = process.env.NODE_ENV === 'production' ? '' : '/vehicleMap'

export function loadLcqaApi(pageNo, pageSize, areaId) {
  return request({
    url:baseUrl+ "/lcqa/listLcQa2",
    method: "get",
    params: {
      pageNo: pageNo,
      pageSize: pageSize,
      areaId: areaId
    }
  })
}

export function addLcqaApi(form) {
  return request({
    url:baseUrl+ "/lcqa",
    method: "post",
    data: form
  })
}

export function delLcqaApi(form) {
  return request({
    url:baseUrl+ "/lcqa/selective",
    method: "delete",
    data: {
      id: form.id,
      position:form.position
    }
  })
}

export function listLcqaApi() {
  return request({
    url:baseUrl+ "/lcqa",
    method: "get",
    params: {
      
    }
  })
}